{% extends 'user.html' %}




{% block left %}
    <ul class="layui-nav layui-nav-tree" lay-filter="test">
        <li class="layui-nav-item layui-nav-itemed">
            <a href="{% url 'user_home' %}">书架</a>

        </li>
        <li class="layui-nav-item layui-nav-itemed">
            <a href="javascript:;">借阅详情</a>
            <dl class="layui-nav-child">
                <dd><a href="{% url 'my_borrow_book' %}">我的借书</a></dd>
                <dd class="layui-this"><a href="{% url 'show_return_book' %}">我的还书</a></dd>
            </dl>
        </li>
        <li class="layui-nav-item">
            <a href="javascript:;">个人中心</a>
            <dl class="layui-nav-child">
                <dd><a href="{% url 'user_detail' %}">账号详情</a></dd>
            </dl>
        </li>
    </ul>
{% endblock %}

{% block body %}
    <span class="layui-breadcrumb">
                <a href="{% url 'user_home' %}">首页</a>
                <a><cite>借阅详情</cite></a>
                <a href="{% url 'show_return_book' %}">我的还书</a>
            </span>
    <hr/>
    <table class="layui-table">
        <h1>归还详情</h1>
        <hr/>
        <tr>
            <th>ISBN</th>
            <th>图书名</th>
            <th>借书日期</th>
            <th>应还日期</th>
            <th>归还日期</th>
            <th>是否超时</th>
        </tr>
        {% for obj in return_book_list %}
            {% if obj.status == 1 %}
                <tr>
                    <th>{{ obj.bookId.ISBN }}</th>
                    <th>{{ obj.bookId.book_name }}</th>
                    <th>{{ obj.borrowing_time }}</th>
                    <th>{{ obj.due_date }}</th>
                    <th>{{ obj.return_time }}</th>
                    {% if obj.flag == 1 %}
                        <td>超时归还</td>
                    {% else %}
                        <td>按时归还</td>
                    {% endif %}

                </tr>
            {% endif %}
        {% endfor %}
    </table>
{% endblock %}